package com.deng.activity.controller;

import com.deng.activity.service.ActivityService;
import com.deng.activity.vo.ActivityDateVO;
import com.deng.base.util.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/activityController")
@Tag(name = "活动接口", description = "活动接口")
public class ActivityController {

    @Autowired
    private ActivityService activityService;

    @Operation(summary = "获取活动时间")
    @PostMapping(value = "/getActivityDate")
    public R<ActivityDateVO> getActivityDate(){
        return R.<ActivityDateVO>ok().data(activityService.getActivityDate());
    }

}
